Python Program to Check If a List is Empty (Comparing with [])

bookmark

my_list = []
if my_list == []:
    print("The list is empty")

 

Output

The list is empty